﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using PerpheralDevice;

namespace AppMachine.EntityFrameworkCore.EntityTypeConfiguration;
internal class PerpDevConfigEntityTypeConfiguration : IEntityTypeConfiguration<PerpDevConfig> {
    public void Configure(EntityTypeBuilder<PerpDevConfig> builder) {
        builder.ToTable($"AppMachine.{nameof(PerpDevConfig)}");
        builder.HasKey(it => it.DevID);
    }
}